package cbs.demo.graal;

import com.oracle.svm.core.annotate.AutomaticFeature;
import com.oracle.svm.core.jdk.Resources;
import org.graalvm.nativeimage.hosted.Feature;

@AutomaticFeature
public class NativeImageBuild implements Feature {
    @Override
    public void beforeAnalysis(BeforeAnalysisAccess access) {
        var in = Thread.currentThread().getContextClassLoader().getResourceAsStream("something");
        Resources.registerResource("something", in);
    }
}
